Optimal. Leaf size=268 \[ \frac{b h p q \text{PolyLog}\left (2,-\frac{h (e+f x)}{f g-e h}\right )}{(h i-g j)^2}-\frac{b h p q \text{PolyLog}\left (2,-\frac{j (e+f x)}{f i-e j}\right )}{(h i-g j)^2}+\frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(i+j x) (h i-g j)}+\frac{h \log \left (\frac{f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{(h i-g j)^2}-\frac{h \log \left (\frac{f (i+j x)}{f i-e j}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{(h i-g j)^2}-\frac{b f p q \log (e+f x)}{(f i-e j) (h i-g j)}+\frac{b f p q \log (i+j x)}{(f i-e j) (h i-g j)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.595351, antiderivative size = 268, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 8, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.242, Rules used = {2418, 2394, 2393, 2391, 2395, 36, 31, 2445} \[ \frac{b h p q \text{PolyLog}\left (2,-\frac{h (e+f x)}{f g-e h}\right )}{(h i-g j)^2}-\frac{b h p q \text{PolyLog}\left (2,-\frac{j (e+f x)}{f i-e j}\right )}{(h i-g j)^2}+\frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(i+j x) (h i-g j)}+\frac{h \log \left (\frac{f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{(h i-g j)^2}-\frac{h \log \left (\frac{f (i+j x)}{f i-e j}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{(h i-g j)^2}-\frac{b f p q \log (e+f x)}{(f i-e j) (h i-g j)}+\frac{b f p q \log (i+j x)}{(f i-e j) (h i-g j)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2418
Rule 2394
Rule 2393
Rule 2391
Rule 2395
Rule 36
Rule 31
Rule 2445
Rubi steps
\begin{align*} \int \frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x) (528+j x)^2} \, dx &=\operatorname{Subst}\left (\int \frac{a+b \log \left (c d^q (e+f x)^{p q}\right )}{(g+h x) (528+j x)^2} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\operatorname{Subst}\left (\int \left (\frac{h^2 \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{(528 h-g j)^2 (g+h x)}-\frac{j \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{(528 h-g j) (528+j x)^2}-\frac{h j \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{(528 h-g j)^2 (528+j x)}\right ) \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\operatorname{Subst}\left (\frac{h^2 \int \frac{a+b \log \left (c d^q (e+f x)^{p q}\right )}{g+h x} \, dx}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(h j) \int \frac{a+b \log \left (c d^q (e+f x)^{p q}\right )}{528+j x} \, dx}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{j \int \frac{a+b \log \left (c d^q (e+f x)^{p q}\right )}{(528+j x)^2} \, dx}{528 h-g j},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(528 h-g j) (528+j x)}+\frac{h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (g+h x)}{f g-e h}\right )}{(528 h-g j)^2}-\frac{h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (528+j x)}{528 f-e j}\right )}{(528 h-g j)^2}-\operatorname{Subst}\left (\frac{(b f h p q) \int \frac{\log \left (\frac{f (g+h x)}{f g-e h}\right )}{e+f x} \, dx}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{(b f h p q) \int \frac{\log \left (\frac{f (528+j x)}{528 f-e j}\right )}{e+f x} \, dx}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(b f p q) \int \frac{1}{(e+f x) (528+j x)} \, dx}{528 h-g j},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(528 h-g j) (528+j x)}+\frac{h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (g+h x)}{f g-e h}\right )}{(528 h-g j)^2}-\frac{h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (528+j x)}{528 f-e j}\right )}{(528 h-g j)^2}-\operatorname{Subst}\left (\frac{(b h p q) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{h x}{f g-e h}\right )}{x} \, dx,x,e+f x\right )}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{(b h p q) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{j x}{528 f-e j}\right )}{x} \, dx,x,e+f x\right )}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{\left (b f^2 p q\right ) \int \frac{1}{e+f x} \, dx}{(528 f-e j) (528 h-g j)},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{(b f j p q) \int \frac{1}{528+j x} \, dx}{(528 f-e j) (528 h-g j)},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac{b f p q \log (e+f x)}{(528 f-e j) (528 h-g j)}+\frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(528 h-g j) (528+j x)}+\frac{h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (g+h x)}{f g-e h}\right )}{(528 h-g j)^2}+\frac{b f p q \log (528+j x)}{(528 f-e j) (528 h-g j)}-\frac{h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (528+j x)}{528 f-e j}\right )}{(528 h-g j)^2}+\frac{b h p q \text{Li}_2\left (-\frac{h (e+f x)}{f g-e h}\right )}{(528 h-g j)^2}-\frac{b h p q \text{Li}_2\left (-\frac{j (e+f x)}{528 f-e j}\right )}{(528 h-g j)^2}\\ \end{align*}
Mathematica [A] time = 0.306487, size = 225, normalized size = 0.84 \[ \frac{b h p q \text{PolyLog}\left (2,\frac{h (e+f x)}{e h-f g}\right )-b h p q \text{PolyLog}\left (2,\frac{j (e+f x)}{e j-f i}\right )+h \log \left (\frac{f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )-h \log \left (\frac{f (i+j x)}{f i-e j}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )+\frac{a (h i-g j)}{i+j x}+\frac{b (h i-g j) \log \left (c \left (d (e+f x)^p\right )^q\right )}{i+j x}-\frac{b f p q (h i-g j) (\log (e+f x)-\log (i+j x))}{f i-e j}}{(h i-g j)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 1.121, size = 0, normalized size = 0. \begin{align*} \int{\frac{a+b\ln \left ( c \left ( d \left ( fx+e \right ) ^{p} \right ) ^{q} \right ) }{ \left ( hx+g \right ) \left ( jx+i \right ) ^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} a{\left (\frac{h \log \left (h x + g\right )}{h^{2} i^{2} - 2 \, g h i j + g^{2} j^{2}} - \frac{h \log \left (j x + i\right )}{h^{2} i^{2} - 2 \, g h i j + g^{2} j^{2}} + \frac{1}{h i^{2} - g i j +{\left (h i j - g j^{2}\right )} x}\right )} + b \int \frac{\log \left ({\left ({\left (f x + e\right )}^{p}\right )}^{q}\right ) + \log \left (c\right ) + \log \left (d^{q}\right )}{h j^{2} x^{3} + g i^{2} +{\left (2 \, h i j + g j^{2}\right )} x^{2} +{\left (h i^{2} + 2 \, g i j\right )} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right ) + a}{h j^{2} x^{3} + g i^{2} +{\left (2 \, h i j + g j^{2}\right )} x^{2} +{\left (h i^{2} + 2 \, g i j\right )} x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right ) + a}{{\left (h x + g\right )}{\left (j x + i\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]